var mongoose = require('mongoose');
/*
01:单选题
02:多选题
03:判断题
04:填空题
05:应用题
*/
var QuestionType = new mongoose.Schema({
	typeId:String,
	typeDesc:String
});

mongoose.model('QuestionType',QuestionType);

var Question = new mongoose.Schema({
	//题目
	title: String,
	//类型
	type : String,
	//选择题的话需要选择的答案,非选择题为空
	res: Array,
	//题目的顺序
	index: Number,
	//属于哪个试卷
	exam: Number,
	//分数
	score:Number,
	//备注
	desc:String,
	//创建时间
	createTime:Date,
	//修改时间
	modifyTime:Date
});

mongoose.model('Question',Question);